#ifndef KEYBOARD_H
#define KEYBOARD_H

#include <Ogre.h>
#include <OgreEventListeners.h>

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Implementation of Keyboard
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
class Keyboard : public Ogre::KeyListener, public Ogre::FrameListener
{
public:
    Keyboard();
    virtual void keyClicked(Ogre::KeyEvent *e);
    virtual void keyPressed(Ogre::KeyEvent *e);
    virtual void keyReleased(Ogre::KeyEvent *e);
    virtual bool frameEnded(const Ogre::FrameEvent& evt);
private:
    bool mEscWasPressed;
};

#endif // KEYBOARD_H
